<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <!--插件-->
    <script src="plugin.js"></script>
</head>
<body>

<img class="source" src="./test2.jpg" alt="">
<img src="" class="target" alt="">

<script>
    $(function () {
        $('.source').on('click',function () {
            $(this).photoCrop({
                fixedScale:false,
                isHead:false,
                callBack:function(url){
                    $('.target').attr('src',url)
                },
            });
        })

    })
</script>

</body>
</html>